package com.ltmall.api.dao;

import com.ltmall.api.bean.CrazyCompetition;
import com.ltmall.api.bean.CrazyCompetitionMember;
import com.ltmall.api.bean.WalletGiftCard;

import java.util.List;

public interface ICrazyDAO {
	//疯抢会员
	public boolean addMember(CrazyCompetitionMember member);
	//活动详情
	public CrazyCompetition getCompetition(int phase);
	//获取疯抢最大期数
	public int maxPhase();
	//获取疯抢会员
	public List<CrazyCompetitionMember> getCompetitionMember(int phase, int cardID, int station);
	//获取礼品卡
	public WalletGiftCard getCard(int cardID);
	//获取疯抢会员
	public CrazyCompetitionMember getCompetitionMember(int number);
	//获取疯抢次数
	public int getCompetitionNuber(int phase, int cardID, int userID);
	//获取带头像的参与者信息
	public List<?> getCompetitionMemberWithPhoto(int phase, int cardID);
	//修改中奖信息
	public boolean updateWinner(int phase, String cardID, String winner);
	//修改状态
	public boolean updatePhaseStation(int phase, int station);
	
	//修改礼品卡的userID
	public boolean updateGiftCardID(int userID, int cardID);
	//修改member的状态
	public  boolean updateStationMember(int number, int station);
	//获取某人疯抢会员
	public List<CrazyCompetitionMember> getOneCompetitionMember(int cardID, int userID);
}
